package cn.pomit.springbootwork.consulgateway.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.pomit.springbootwork.consulgateway.model.ResultModel;

@RestController
public class FallbackController {

	@GetMapping("/incaseoffailureusethiss")
	public ResultModel fallback() {
		ResultModel rm = ResultModel.error("服务咱不可用，请稍后重试！");

		return rm;
	}
}
